.box {
  background-color: #fafafa;
  & > header {
    padding: 20px 10px;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    box-sizing: border-box;
  }
  // banner
  .banner {
    height: 200px;
    padding: 15px 20px;
    margin-top: 100px;
    display: flex;
    background-color: white;
    & > img {
      width: 180px;
      margin-right: 20px;
      height: 200px;
    }
    & > div {
      p {
        margin-top: 10px;
        width: 95%;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 4; //设置最多4行
        -webkit-box-orient: vertical;
        word-break: break-all;
        overflow: hidden;
      }
    }
  }
  // 分类
  .types {
    background-color: white;
    min-height: 200px;
    padding-bottom: 30px;
    & > ul {
      display: flex;
      flex-wrap: wrap;
      text-align: center;
      li {
        width: 20%;
        padding: 0 20px;
        margin-top: 10px;
        box-sizing: border-box;
        list-style: none;
        img {
          width: 100%;
          border-radius: 50%;
        }
      }
    }
    & > div {
      margin: 0 auto;
      width: 120px;
      margin-top: 10px;
      border-radius: 30px;
      text-align: center;
      padding: 10px 20px;
      color: aquamarine;
      background-color: #eefaf7;
      border-bottom: 1px solid #ccc;
    }
  }
  // 达人书单
  .starbooklist {
    margin-top: 20px;
    background-color: white;
    header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 20px;
      box-sizing: border-box;
      p {
        strong {
          font-size: 30px;
          margin-right: 30px;
        }
      }
    }
    section {
      ul {
        margin-top: 30px;
        padding-bottom: 30px;
        padding-left: 30px;
        display: flex;
        overflow: auto;
        li {
          list-style: none;
          width: 400px;
          margin-right: 30px;
          box-shadow: 0 0 5px #ccc;
          margin-top: 5px;
          padding: 20px;
          img {
            width: 300px;
            height: 200px;
            display: block;
            margin: 20px auto;
          }
          p:nth-child(2) {
            width: 100%;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            font-weight: 900;
          }
          p:nth-child(3) {
            margin-top: 20px;
            width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 3; //设置最多4行
            -webkit-box-orient: vertical;
            word-break: break-all;
            overflow: hidden;
          }
          & > div {
            display: flex;
            align-items: center;
            justify-content: start;
            img {
              width: 50px;
              height: 50px;
              border-radius: 50%;
              margin-right: 20px;
              margin-left: 0;
            }
          }
        }
      }
    }
  }
  // 热门榜单
  .hotbang {
    & > header {
      display: flex;
      justify-content: space-between;
      padding: 20px;
      align-items: center;
      span:nth-child(1) {
        font-size: 30px;
        font-weight: 900;
      }
    }
    & > ul {
      margin: 10px 30px;
      display: flex;
      overflow: auto;
      li {
        width: 300px;
        box-sizing: border-box;
        text-align: center;
        padding: 30px;
        box-shadow: 0 0 5px #ccc;
        margin-right: 20px;
        margin-top: 5px;
        margin-bottom: 20px;
        background-color: #eeeeee;
        & > p {
          font-weight: 900;
        }
        img {
          width: 240px;
          height: 240px;
          margin-top: 20px;
        }
      }
    }
  }
  // 达人精选
  .starSelected {
    & > header {
      display: flex;
      padding: 20px;
      align-items: flex-end;
      span:nth-child(1) {
        font-size: 30px;
        font-weight: 900;
        margin-right: 30px;
      }
    }
    & > ul {
      li {
        display: flex;
        padding: 0 30px;
        margin-bottom: 30px;
        & > img {
          width: 200px;
          height: 260px;
          border-radius: 0 30px 0 0;
          margin-right: 20px;
        }
        & > div {
          p:nth-child(1) {
            font-size: 28px;
            margin-top: 10px;
            font-weight: bolder;
            margin-bottom: 30px;
          }
          p:nth-child(2) {
            width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2; //设置最多4行
            -webkit-box-orient: vertical;
            word-break: break-all;
          }
          & > div {
            display: flex;
            align-items: flex-end;
            margin-top: 20px;
            img {
              width: 50px;
              height: 50px;
              border-radius: 50%;
            }
          }
        }
      }
    }
  }
}
